<?php
namespace app\common\service\impl;
use app\common\model\Brand;
use app\common\service\BrandService;
use app\common\utils\ResultVOUtil;
use think\facade\Log;
class BrandServiceImpl implements BrandService
{
    protected $brand;
    
    public function __construct(Brand $brand)
    {
        $this->brand = $brand;
    }
    
    public function list()
    {
        $data = Brand::all(); 
        return ResultVOUtil::success($data);
    }
    
    public function queryAll()
    {
        try {
            $data = $this->brand->all();
        } catch (\Exception $e) {
            return false;
            Log::record('[ 查询车型 ]'.$e->getMessage(),'error');
        }
        
        return $data;
    }


  
}

